package baseFx.database.mybatis;

import baseFx.database.Sql;
import baseFx.database.SqlParam;

public interface MybatisSql extends Sql, MybatisQuery {
    int stmtExecute(SqlParam param);

    default int stmtExecute(String statement) {
        return stmtExecute(statement, null);
    }

    default int stmtExecute(String statement, Object param) {
        SqlParam sp = SqlParam.createFor(statement, param, false);
        return stmtExecute(sp);
    }
}
